﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace furion.blog.Domain.MySQL
{
    /// <summary>
    /// 用户信息表
    ///</summary>
    [SugarTable("user")]
    public class User
    {
        /// <summary>
        /// 用户ID 
        ///</summary>
         [SugarColumn(ColumnName="user_id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public long UserId { get; set; }
        /// <summary>
        /// 部门ID 
        ///</summary>
         [SugarColumn(ColumnName="dept_id"    )]
         public long? DeptId { get; set; }
        /// <summary>
        /// 角色ID 
        ///</summary>
         [SugarColumn(ColumnName="role_id"    )]
         public long? RoleId { get; set; }
        /// <summary>
        /// 用户账号 
        ///</summary>
         [SugarColumn(ColumnName="user_name"    )]
         public string UserName { get; set; }
        /// <summary>
        /// 用户昵称 
        ///</summary>
         [SugarColumn(ColumnName="nick_name"    )]
         public string NickName { get; set; }
        /// <summary>
        /// 真实姓名 
        ///</summary>
         [SugarColumn(ColumnName="real_name"    )]
         public string RealName { get; set; }
        /// <summary>
        /// 用户类型（00系统用户） 
        /// 默认值: 00
        ///</summary>
         [SugarColumn(ColumnName="user_type"    )]
         public string UserType { get; set; }
        /// <summary>
        /// 用户邮箱 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="email"    )]
         public string Email { get; set; }
        /// <summary>
        /// 手机号码 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="phone"    )]
         public string Phone { get; set; }
        /// <summary>
        /// 用户性别（MAN男 WOMAN女 UNKNOW未知） 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="sex"    )]
         public string Sex { get; set; }
        /// <summary>
        /// 头像地址 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="avatar"    )]
         public string Avatar { get; set; }
        /// <summary>
        /// 密码 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="password"    )]
         public string Password { get; set; }
        /// <summary>
        /// 帐号状态（0正常 1停用） 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 是否删除（NO代表存在 YES代表删除） 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="is_delete"    )]
         public string IsDelete { get; set; }
        /// <summary>
        /// 最后登录IP 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="login_ip"    )]
         public string LoginIp { get; set; }
        /// <summary>
        /// 最后登录时间 
        ///</summary>
         [SugarColumn(ColumnName="login_date"    )]
         public DateTime? LoginDate { get; set; }
        /// <summary>
        /// 创建者 
        ///</summary>
         [SugarColumn(ColumnName="created_by"    )]
         public long? CreatedBy { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="created_time"    )]
         public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 更新者 
        ///</summary>
         [SugarColumn(ColumnName="updated_by"    )]
         public long? UpdatedBy { get; set; }
        /// <summary>
        /// 更新时间 
        ///</summary>
         [SugarColumn(ColumnName="updated_time"    )]
         public DateTime? UpdatedTime { get; set; }
        /// <summary>
        /// 备注 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="remark"    )]
         public string Remark { get; set; }
        /// <summary>
        /// 是否系统超级管理员(YES：是 NO：否) 
        ///</summary>
         [SugarColumn(ColumnName="is_super_admin"    )]
         public string IsSuperAdmin { get; set; }
    }
}
